package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;

import com.ruoyi.buss.qmcy.domain.QmcyCustCksd;
import com.ruoyi.buss.qmcy.mapper.QmcyCustCksdMapper;
import com.ruoyi.buss.qmcy.service.IQmcyCustCksdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 存款时点余额Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-16
 */
@Service
public class QmcyCustCksdServiceImpl implements IQmcyCustCksdService
{
    @Autowired
    private QmcyCustCksdMapper qmcyCustCksdMapper;

    /**
     * 查询存款时点余额
     * 
     * @param zh 存款时点余额ID
     * @return 存款时点余额
     */
    @Override
    public QmcyCustCksd selectQmcyCustCksdById(String zh)
    {
        return qmcyCustCksdMapper.selectQmcyCustCksdById(zh);
    }

    /**
     * 查询存款时点余额列表
     * 
     * @param qmcyCustCksd 存款时点余额
     * @return 存款时点余额
     */
    @Override
    public List<QmcyCustCksd> selectQmcyCustCksdList(QmcyCustCksd qmcyCustCksd)
    {
        return qmcyCustCksdMapper.selectQmcyCustCksdList(qmcyCustCksd);
    }

    /**
     * 新增存款时点余额
     * 
     * @param qmcyCustCksd 存款时点余额
     * @return 结果
     */
    @Override
    public int insertQmcyCustCksd(QmcyCustCksd qmcyCustCksd)
    {
        return qmcyCustCksdMapper.insertQmcyCustCksd(qmcyCustCksd);
    }

    /**
     * 修改存款时点余额
     * 
     * @param qmcyCustCksd 存款时点余额
     * @return 结果
     */
    @Override
    public int updateQmcyCustCksd(QmcyCustCksd qmcyCustCksd)
    {
        return qmcyCustCksdMapper.updateQmcyCustCksd(qmcyCustCksd);
    }

    /**
     * 批量删除存款时点余额
     * 
     * @param zhs 需要删除的存款时点余额ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustCksdByIds(String[] zhs)
    {
        return qmcyCustCksdMapper.deleteQmcyCustCksdByIds(zhs);
    }

    /**
     * 删除存款时点余额信息
     * 
     * @param zh 存款时点余额ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustCksdById(String zh)
    {
        return qmcyCustCksdMapper.deleteQmcyCustCksdById(zh);
    }
}
